<!DOCTYPE HTML>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
    <meta http-equiv="Cache-Control" content="no-siteapp"/>
    <title>询价单管理</title>
    <link rel="stylesheet" type="text/css" href="../../static/h-ui/css/H-ui.min.css"/>
    <link rel="stylesheet" type="text/css" href="../../static/h-ui.admin/css/H-ui.admin.css"/>
    <link rel="stylesheet" type="text/css" href="../../ht-css/style-q.css"/>
    <link rel="stylesheet" type="text/css" href="../../lib/Hui-iconfont/1.0.8/iconfont.css" />
    <link rel="stylesheet" type="text/css" href="../../ht-css/drop-down.css" />
    <!--时间插件-->
    <link rel="stylesheet" type="text/css" href="../../ht-css/jedate.css" />
    <style>

        table.dataTable thead .sorting_asc{
            background: #f4f4f4;
        }
        .inquiryOperate{
            color:#1476E5;
        }
        .goods_fanye{
            margin-top:30px;
        }
    </style>
</head>

<body data-id="31">
<nav class="breadcrumb">订单管理<span class="c-gray en">&gt;</span>询价单管理<a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新"><i class="Hui-iconfont">&#xe68f;</i></a>
</nav>
<article class="page-container">
    <div class="bg-1 bk-gray ml-20 pt-20 pb-20 clearfix mr-20">
        <form id="form-search" class="clearfix">
            <div class="clearfix">
                <div class="lowaa pos-r">
                    <div class="replaceorder_lable w4" style="width: 68px;">询价单号：</div><span class="size-M f-l select_s">
                    <input type="text" id="inquiry_id" class="input-text radius" style="width:240px">
                </span>
                </div>
                <div class="lowaa pos-r">
                    <div class="replaceorder_lable w4" style="margin-left:55px;width: 68px;">客户名称：</div>
                    <span class="size-M f-l select_ph">
                        <input type="text" id="customer_name" class="input-text radius" style="width:150px">
                    </span>
                </div>
                <div class="lowaa pos-r">
                    <div class="replaceorder_lable w4"   style="width:99px;">询价单状态：</div>
                    <span class="size-M f-l select_ph" style="display: inline-block;width:175px ">
                        <!--<select id="inquiryStat1" class="input-text radius" style="width:140px;display:inline-block;float:left; margin-right:10px">
                            <option value="">全部</option>
                            <option value="1020">待匹配</option>
                            <option value="3040">待定价</option>
                            <option value="50">已报价</option>
                            <option value="60">已退回</option>
                            <option value="70">已撤销</option>
                        </select>-->
                           <div class="input_box sel_box sel_box02 col-xs-8 col-sm-9">
                                        <input  type="text" class="dataval input-text radius f-l w-180" readonly style="width: 165px;margin-left: -9px;">
                                        <i class="icon_arrow" style="margin-left: -24px;"></i>
                                        <span class="placeholder02" style="margin-left: -9px;width: 129px;"><span class="all-radius">全部</span></span>
                                        <ul class="ulbox item" style="margin-left: -8px;width: 163px;display: none">
                                            <li class="" ><input type="checkbox" crmCustomerId="10,20,30,40,50,60,70,80"><p class="checkboxall">全选</p></li>
                                            <li class="lidata" crmCustomerId="10,20" crmCustomername="待匹配"><input type="checkbox" class="evetyipt"><span>待匹配</span></li>
                                            <li class="lidata" crmCustomerId="30,40" crmCustomername="待定价" ><input type="checkbox" class="evetyipt"><span>待定价</span></li>
                                            <li class="lidata" crmCustomerId="50" crmCustomername="已报价" ><input type="checkbox" class="evetyipt"><span>已报价</span></li>
                                            <li class="lidata" crmCustomerId="80" crmCustomername="已下单" ><input type="checkbox" class="evetyipt"><span>已下单</span></li>
                                            <li class="lidata" crmCustomerId="60" crmCustomername="已退回"><input type="checkbox" class="evetyipt"><span>已退回</span></li>
                                            <li class="lidata" crmCustomerId="70" crmCustomername="已撤销" ><input type="checkbox" class="evetyipt"><span>已撤销</span></li>
                                        </ul>
                                    </div>
                        <select id="inquiryStat2" class="input-text radius" style="width:80px;display:inline-block;float:left;display: none;" inquiry_status1="">
                            <option value="00">全部</option>
                            <option value="01">待处理</option>
                            <option value="02">处理中</option>
                        </select>
                        <input type="hidden" value="" id="inquiry_status"/>
                    </span>
                </div>
                <div class="lowaa pos-r">
                    <div class="replaceorder_lable w4" style="margin-left:-27px;width: 68px;">项目名称：</div>
                    <span class="size-M f-l select_s">
                            <input type="text" id="project_name" class="input-text radius" style="width:150px" maxlength="50">
                    </span>
                </div>
            </div>
            <div class="clearfix">
                <div class="lowaa pos-r">
                    <div class="replaceorder_lable w4" style="width: 68px;">询价时间：</div>
                    <div class="f-l">
                        <input class="workinput wicon input-text radius" id="timemin" type="text" placeholder="起始时间" style="width:115px;" readonly>
                        ~
                        <input class="workinput wicon input-text radius" id="timemax" type="text" placeholder="结束时间" style="width:115px;" readonly>
                    </div>
                </div>
                <div class="lowaa pos-r">
                    <div class="replaceorder_lable w4" style="margin-left:9px;width: 68px;">匹配人员：</div>
                    <span class="size-M f-l select_s">
                        <input type="text" id="matching_name" class="input-text radius" style="width:150px">
                    </span>
                </div>
                <div class="lowaa pos-r">
                    <div class="replaceorder_lable w4" style="margin-left:-11px;width: 68px;">定价人员：</div>
                    <span class="size-M f-l select_s">
                            <input type="text" id="fix_price_name" class="input-text radius" style="width:150px">
                    </span>
                </div>
                <div class="lowaa pos-r">
                    <div class="replaceorder_lable w4" style="margin-left:-30px;width: 68px;">商品名称：</div>
                    <span class="size-M f-l select_s">
                            <input type="text" id="product_name" class="input-text radius" style="width:150px" maxlength="50">
                    </span>
                </div>
            </div>
            <div class="clearfix">
                <div class="lowaa pos-r">
                    <div class="replaceorder_lable w4" style="width: 68px;">收货地：</div>
                    <span class="select-box size-M radius " style="float:left;width:180px;margin-right: 10px">
                        <select id="getArea" class="select" onchange="discountdata(1)" name="receiver_province" size="1">
                        </select>
                    </span>
                </div>
                <div class="lowaa pos-r">
                    <div class="replaceorder_lable w4" style="margin-left:65px;width: 68px;">联系人：</div>
                    <span class="size-M f-l select_s">
                        <input type="text" id="linkman" class="input-text radius" style="width:150px">
                    </span>
                </div>
                <div class="lowaa pos-r">
                    <div class="replaceorder_lable w4" style="width: 67px;margin-left: -7px;">所属平台：</div>
                    <span class="size-M f-l select_s" style="display: inline-block;width:100px ">
                        <select class="input-text radius" name="brandclass" size="1" id="platform">
                        <option value="1020">全部</option>
                        <option value="10">签约平台</option>
                        <option value="20">普通平台</option>
                        </select>
                    </span>
                </div>
                <div class="lowaa pos-r">
                    <div class="replaceorder_lable w4" style="width: 67px;margin-left: 50px;">来源：</div>
                    <span class="size-M f-l select_s" style="display: inline-block;width:100px ">
                        <select class="input-text radius" name="source" size="1" id="source">
                        <option value="1020">全部</option>
                        <option value="10">PC</option>
                        <option value="20">APP</option>
                        </select>
                    </span>
                </div>
            </div>
            <div class="text-c mb-10">
                <input type="submit" id="submitBtn" class="btn btn-secondary radius mr-20 powerButton 103" value="查&nbsp;&nbsp;询">
                <input type="reset" id="resetBtn" onclick="ordersta()" class="btn radius powerButton 103" value="重&nbsp;&nbsp;置" style="line-height: 1">
            </div>
        </form>
        <div style="overflow: auto">
            <table style="width:100%;" class="table table-border table-bg table-hover table-sort mt-10" id="datatable">
                <thead>
                <tr class="text-c">
                    <th width="75">商品名称</th>
                    <th width="135">匹配商品</th>                    
                    <th width="135">商品描述</th>
                    <th width="115">客户名称</th>
                    <th width="70">联系人</th>
                    <th width="70">收货地</th>
                    <!-- <th width="90"><span  style="position:relative">询价时间
                        <a href="javascript:void(0);" id="sortByCreatedTime" class="sortByCreatedTime">
                            <img src="../../img/copyup.png" alt="" style="position: absolute;top:2px"></a></span>
                    </th> -->
                    <!-- <th width="100">要求到货时间</th>-->
                    <th width="70" >
                        <span style="position:relative">询价数量<a href="javascript:void(0);" id="sortByAllNumber" class="sortByAllNumber">
                            <img src="../../img/downorder.png" alt="" style="position: absolute;top:2px"></a></span>

                    </th>
                    <th width="70">报价数量</th>
                    <th width="70">匹配人员</th>
                    <th width="100">处理时间</th>
                    <th width="70">定价人员</th>
                    <th width="100">处理时间</th>
                    <th width="100">来源</th>
                    <th width="100">询价状态</th>
                    <th width="75">操作</th>
                </tr>
                </thead>
                <!-- <tbody id="orderList" class="shun">
                </tbody> -->
            </table>
            <div class="tableclass" id="orderList"> </div>
            <div class="dataTables_wrapper goods_fanye clearfix mt-5">
                <div class="f-r pageturning M-box3"></div>
            </div>
        </div>
    </div>
</article>
<!--_footer 作为公共模版分离出去-->
<script type="text/javascript" src="../../lib/jquery/1.9.1/jquery.min.js?rev=@@hash"></script>
<script type="text/javascript" src="../../lib/layer/2.4/layer.js?rev=@@hash"></script>
<script type="text/javascript" src="../../static/h-ui/js/H-ui.min.js?rev=@@hash"></script>
<script type="text/javascript" src="../../static/h-ui.admin/js/H-ui.admin.js?rev=@@hash"></script> <!--/_footer 作为公共模版分离出去-->
<!--时间组件-->
<script type="text/javascript" src="../../lib/jquery.jedate.min.js?rev=@@hash"></script>
<script type="text/javascript" src="../../lib/My97DatePicker/4.8/WdatePicker.js?rev=@@hash"></script>
<!--引入分页-->
<link rel="stylesheet" href="../../lib/pagination/pagination.css">
<script src="../../lib/pagination/jquery.pagination.js?rev=@@hash"></script>
<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="../../lib/Validform/5.3.2/Validform_v5.3.2_min.js?rev=@@hash"></script>
<script type="text/javascript" src="../../lib/datatables/1.10.0/jquery.dataTables.min.js?rev=@@hash"></script>
<script type="text/javascript" src="../../lib/My97DatePicker/4.8/WdatePicker.js?rev=@@hash"></script>
<script src="../../ht-js/public.js?rev=@@hash"></script>
<!--验证token-->
<script src="../../ht-js/verifyToken.js?rev=@@hash"></script>
<script src="../../ht-js/warehouse.js?rev=@@hash"></script>
<!--页面JS-->
<script src="../../ht-js/xunjiadan/InquiryListManage.js?rev=@@hash"></script>
<!--权限控制-->
<script type="text/javascript" src="../../ht-js/power.js?rev=@@hash"></script>
<script>
    $(function () {
        function timeSet(startEl,endEl,timeFormat){
            /*startEl=>开始时间Input的id，endEl=>结束时间Input的id，时间格式（YYYY-MM-DD hh:mm:ss  YYYY年MM月DD日 hh:mm:ss）*/
            /*时间设置*/
            var thisMaxTime = $.nowDate().substring(0,$.nowDate().length-8)+"23:59:59";
            var start = {
                format: timeFormat,
                maxDate: thisMaxTime,
                okfun: function(obj){
                    end.minDate = obj.val.substring(0,obj.val.length-5)+"00:00:00"; //开始日选好后，重置结束日的最小日期
                }
            };
            var end = {
                format: timeFormat,
                maxDate: thisMaxTime,
                okfun: function(obj){
                    start.maxDate = obj.val.substring(0,obj.val.length-5)+"23:59:59"; //将结束日的初始值设定为开始日的最大日期
                }
            };
            $.jeDate(startEl,start);
            $.jeDate(endEl,end);
        }
        timeSet("#timemin","#timemax","YYYY-MM-DD hh:mm");
    })
</script>
</body>
</html>